<script>
	function dis(){
	document.form1.f_maphieu.style.display = "none";
	}
</script>
<body onload="dis()">
<form method=POST action='chuyenlop.action.php' id="form1" name="form1">
<?php
$id=$_GET['id'];
$tk = $_GET['tk'];
include('connect/connect.php');
check_admin();
$result2 = mysql_query('SELECT * FROM tbl_lop') ;
   echo "Chuyển sang lớp<select name='lop' id='lop'>";	
					while($row2 = mysql_fetch_array($result2))
						{
							if ($tk == $row2['f_lop'])
							echo '<option value='.$row2['f_lop'].' selected>'.$row2['f_lop'].'</option>';
							else
							echo '<option value='.$row2['f_lop'].' >'.$row2['f_lop'].'</option>';
						}	
					
		echo "</select>";
		echo "<input type='id' value=".$id." name='f_maphieu' id='f_maphieu'>";
?>
<input type="submit" value="Chuyển lớp">
</form>
</body>